﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MyAraay : MonoBehaviour
{

    [System.Serializable]
    public struct IntArrayWrapper
    {
        public string name;
        public int[] array;
    }
    public List<IntArrayWrapper> arraysList = new List<IntArrayWrapper>();


    [Serializable]
    public struct MyStruct
    {
        public string name;
        //public int B;
        public GameObject[] game;
        //public MyStruct(string a, int b,int[] c)
        //{
        //    this.A = a;
        //    this.B = b;
        //    C = c;
        //}
    }
    public MyStruct[] Enemys; //怪物数组
    // Start is called before the first frame update
    void Start()
    {
        int[] array;
        int[] array2 = new int[3];
        //第一种
        int[] array3 = new int[3];
        array3[0] = 10;
        array3[1] = 20;
        array3[2] = 30;
        //第二种 数组的初始化
        int[] array4 = new int[2] { 10, 20 };//容量显示声明；
        int[] array5 = new int[] { 100, 200 };//容量隐示分配；


        TValue<int> value = new TValue<int>(10);
        Debug.Log(value.GetValue());
    }
    

    // Update is called once per frame
    void Update()
    {

    }
}
